//
//  MyUnArchive.h
//  Unzip
//
//  Created by zhibao on 2024/7/24.
//

#import <Foundation/Foundation.h>
#import <SSZipArchive/SSZipArchive.h>

NS_ASSUME_NONNULL_BEGIN
#define UNIQUE_KEY( x ) NSString * const x = @#x
enum{
    SARFileTypeZIP,
    SARFileTypeRAR
};
 
static UNIQUE_KEY( rar );
static UNIQUE_KEY( zip );
 
typedef void(^completionBlock)(BOOL result);

@interface MyUnArchive : NSObject
//+ (BOOL)isPasswordProtectedAtPath:(NSString *)path;
 
+ (BOOL)unarchiveFrom:(NSString *)filePath toPath:(NSString *)topath password:(NSString *_Nullable)password;
@end


NS_ASSUME_NONNULL_END
